import { SMSDecorator } from "./Decorator/SMSDecorator";
import { WXDecorator  }from "./Decorator/WXDecorator";
import { INotifier } from "./Interfice";

import { Notifier } from "./Notifier";

// 只能发送邮件
const baseNotifier = new Notifier(['abc@.com','aaa@.xyz'])
// baseNotifier.send('hello')
// 现在客户想要发送短信以及微信通知了
const smsDecorator = new SMSDecorator(baseNotifier,'199934564433')
const wechatDecorator = new WXDecorator(smsDecorator,"wxnumber")
wechatDecorator.send('sms hello')